import { IPSSubSysServiceAPIDTO } from './ipssub-sys-service-apidto';
import { IPSSubSysServiceAPIDTOField } from './ipssub-sys-service-apidtofield';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSubSysServiceAPIDTOImpl extends PSModelObjectImpl implements IPSSubSysServiceAPIDTO {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  protected pssubsysserviceapidtofields: IPSSubSysServiceAPIDTOField[] | null = null;

  getPSSubSysServiceAPIDTOFields(): IPSSubSysServiceAPIDTOField[] | null {
    if (this.pssubsysserviceapidtofields == null) {
      this.pssubsysserviceapidtofields = this.fillChildListModel(this.M.getPSSubSysServiceAPIDTOFields, 'service.IPSSubSysServiceAPIDTOField') as IPSSubSysServiceAPIDTOField[];
    }
    return this.pssubsysserviceapidtofields;
  }

  get psSubSysServiceAPIDTOFields(): IPSSubSysServiceAPIDTOField[] | null {
    return this.getPSSubSysServiceAPIDTOFields();
  }

  findPSSubSysServiceAPIDTOField(objKey: any): IPSSubSysServiceAPIDTOField | null {
    return this.getPSModel5('service.IPSSubSysServiceAPIDTOField', this.getPSSubSysServiceAPIDTOFields(), objKey) as IPSSubSysServiceAPIDTOField;
  }

  get type(): string {
    return this.M.type;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get cls(): string {
    return 'PSSubSysServiceAPIDTOImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'service.IPSServiceAPIDTO' || cls == 'service.IPSSubSysServiceAPIDTO') return true;
    return super.instanceof(cls);
  }
}
